package com.shi.invoke;

import shi.MyServiceClient;
import shi.MyServicePortType;

public class Invoke {

	/**
	 9     * 这个方法调用web服务并返回服务执行的结果
	10     * @param yourName
	11     * @return
	12     */
	    public static String invokeServiceNow(String yourName)
	    {
	        MyServiceClient service=new MyServiceClient();
	        MyServicePortType port=service.getMyServiceHttpPort();
	        return port.sayHello(yourName);
	    }
	    /**
	     * @param args
	     */
	    public static void main(String[] args) {
	        String MyName="shixitong";
	        System.out.println(Invoke.invokeServiceNow(MyName));            
	    }
}
